import { createRouter, createWebHashHistory } from 'vue-router'

// : Array<RouteRecordRaw>
export const routes: any = [
	{
		path: '/',
		redirect: '/home' // 默认重定向到登录页面
    },
	{
		path: '/login',
		name: 'Login',
		hidden: true,
		component: () => import('@/views/Login/index.vue'),
		meta: {
			keepAlive: false,
		},
    },
    {
		path: '/home',
		name: 'Home',
		hidden: true,
		component: () => import('@/views/Home/index.vue'),
		meta: {
			keepAlive: false,
		},
	},
	 {
		path: '/toDoCenter',
		name: 'toDoCenter',
		hidden: true,
		component: () => import('@/components/toDoCenter/index.vue'),
		meta: {
			keepAlive: false,
		},
	},
	
]

const router = createRouter({
	history: createWebHashHistory(),
	routes,
} as any) as any

export default router
